<template>
  <tab-bar class="main-tab-bar">
    <tab-bar-item link="/home" activeColor="red">
      <img src="~assets/img/tabbar/home.svg" slot="item-icon" alt="首页">
      <img src="~assets/img/tabbar/home_active.svg" slot="item-icon-active" alt="首页">
      <p class="tabbar-title" slot="item-text">首页</p>
    </tab-bar-item>
    <tab-bar-item link="/category">
      <img src="~assets/img/tabbar/category.svg" slot="item-icon" alt="分类">
      <img src="~assets/img/tabbar/category_active.svg" slot="item-icon-active" alt="分类">
      <p class="tabbar-title" slot="item-text">分类</p>
    </tab-bar-item>
    <tab-bar-item link="/cart">
      <img src="~assets/img/tabbar/shopcart.svg" slot="item-icon" alt="购物车">
      <img src="~assets/img/tabbar/shopcart_active.svg" slot="item-icon-active" alt="购物车">
      <p class="tabbar-title" slot="item-text">购物车</p>
    </tab-bar-item>
    <tab-bar-item link="/profile">
      <img src="~assets/img/tabbar/profile.svg" slot="item-icon" alt="我的">
      <img src="~assets/img/tabbar/profile_active.svg" slot="item-icon-active" alt="我的">
      <p class="tabbar-title" slot="item-text">我的</p>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
  import TabBar from "components/common/tabbar/TabBar";
  import TabBarItem from "components/common/tabbar/TabBarItem";

  export default {
    name: "MainTabBar",
    components: {TabBarItem, TabBar}
  }
</script>

<style scoped>
  .tabbar-title {
    font-size: 12px;
  }

  .main-tab-bar {
    z-index: 9999;
  }
</style>
